"""
-*- coding:utf-8 -*-
__project__ = 'le-bo16'
__file_name__ = 'rickey'
__author__ = 'RickeyTing'
__time__ = '2020/10/27 19:36'
__product_name = PyCharm
# code is far away from bugs with the god animal protecting
    I love animals. They taste delicious.
              ┏┓      ┏┓
            ┏┛┻━━━┛┻┓
            ┃        ┃
            ┃  ┳┛  ┗┳  ┃
            ┃      ┻      ┃
            ┗━┓      ┏━┛
                ┃      ┗━━━┓
                ┃  神兽保佑    ┣┓
                ┃　永无BUG！   ┏┛
                ┗┓┓┏━┳┓┏┛
                  ┃┫┫  ┃┫┫
                  ┗┻┛  ┗┻┛
"""


import random
while True:
    print('======欢迎进入猜拳小游戏======\n')
    player = int(input("请输入你的选项：0，剪刀 1，石头 2，布 3，退出\n"))
    computer = random.randint(0, 2)
    if player == 3:
        print("游戏退出!!!")
        break
    if (player == 0 and computer == 2) or (player == 1 and computer == 0):
        print('恭喜你，玩家赢了!!!')
    elif player == computer:
        print('你们平局了')
    else:
        print('很遗憾，电脑赢了!!!')
print("欢迎再次玩耍!!!")


















